; *** Passover
; *** Copyright 1998-2002 Zillions Development
; v.2.0

; You need to purchase Zillions of Games to load this rules file
; Visit the Zillions web site at http://www.zillions-of-games.com

(define shift ($1  (verify empty?) add) )

(game
        (title "Pass Over")
        (players X O)
        (turn-order X O)
        (board
            (image "images\TicTacToe\TTTbrd.bmp")
            (grid
                (start-rectangle 0 0 112 112) ; top-left position
				
                (dimensions ;3x3
                    ("a/b/c" (0 112)) ; rows
                    ("1/2/3" (112 0)) ; columns
				)
				(directions (n -1 0) (e 0 1) (s 1 0) (w 0 -1))
			)
		) 
        (piece
		    (image X "images\TicTacToe\TTTX.bmp"
		           O "images\TicTacToe\TTTO.bmp")
            (name XO)
			(help "XO: moves up, down, left or right")
			(moves
			    (move-type moving)
				(shift n)
				(shift e)
				(shift s)
				(shift w)
			)
		)
            
       (board-setup
            (X (XO off 1 a1 b1 c1))
            (O (XO off 1 a3 b3 c3))
		)
       (win-condition 
	        (X) (or (absolute-config XO (a3 b3 c3)))            
		)
		(win-condition 
		    (O) (or (absolute-config XO (a1 b1 c1)))
		)
)			    